home *** CD-ROM | disk | FTP | other *** search
- package koala.dynamicjava.tree;
-
- import java.util.List;
- import koala.dynamicjava.tree.visitor.Visitor;
-
- public class ImportDeclaration extends Node {
- public static final String NAME = "name";
- public static final String PACKAGE = "package";
- private String name;
- private boolean pckage;
-
- public String getName() {
- return this.name;
- }
-
- public void setName(String var1) {
- if (var1 == null) {
- throw new IllegalArgumentException("s == null");
- } else {
- ((Node)this).firePropertyChange("name", this.name, this.name = var1);
- }
- }
-
- public boolean isPackage() {
- return this.pckage;
- }
-
- public void setPackage(boolean var1) {
- ((Node)this).firePropertyChange("package", this.pckage, this.pckage = var1);
- }
-
- public Object acceptVisitor(Visitor var1) {
- return var1.visit(this);
- }
-
- public ImportDeclaration(List var1, boolean var2) {
- this(var1, var2, (String)null, 0, 0, 0, 0);
- }
-
- public ImportDeclaration(List var1, boolean var2, String var3, int var4, int var5, int var6, int var7) {
- super(var3, var4, var5, var6, var7);
- if (var1 == null) {
- throw new IllegalArgumentException("ident == null");
- } else {
- this.pckage = var2;
- this.name = TreeUtilities.listToName(var1);
- }
- }
- }
-